package com.wangan.wanganpush.dao;

import com.wangan.wanganpush.model.UserOrderInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface OrderInfoDao extends JpaRepository<UserOrderInfo,Integer>{

    @Query(value = "SELECT * from wangan_user_order_info a where a.flag = ?1 limit 0,1000;", nativeQuery = true)
    List<UserOrderInfo> findAllByFlag(int flag);
}
